package com.jr.service.impl;

import com.jr.entry.Resume;
import com.jr.entry.User;
import com.jr.mapper.ResumeMapper;
import com.jr.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeMapper rm;

    public boolean addResume(Resume resume) {
        return rm.insert(resume)>0?true:false;
    }

    public Resume select(User user) {
        return rm.select(user);
    }

    public boolean update(Resume resume) {
        return rm.update(resume);
    }
}
